import request from '@/utils/request'

// 查询身份信息列表
export function listStanding(query) {
  return request({
    url: '/kaifa/standing/list',
    method: 'get',
    params: query
  })
}

// 查询身份信息详细
export function getStanding(id) {
  return request({
    url: '/kaifa/standing/' + id,
    method: 'get'
  })
}

// 新增身份信息
export function addStanding(data) {
  return request({
    url: '/kaifa/standing',
    method: 'post',
    data: data
  })
}

// 修改身份信息
export function updateStanding(data) {
  return request({
    url: '/kaifa/standing',
    method: 'put',
    data: data
  })
}

// 删除身份信息
export function delStanding(id) {
  return request({
    url: '/kaifa/standing/' + id,
    method: 'delete'
  })
}

//远程查询身份信息
export function getStandingByName(name) {
  return request({
    url: '/kaifa/standing/getStandingByName/',
    method: 'get',
    params: {
      name: name
    }
  })
}
